package com.yzc.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;


/**
 * @TableName t_tour
 */
@TableName(value = "t_tour")
@Data
public class Tour implements Serializable {
    @TableId(value = "tourid", type = IdType.AUTO)
    private Integer tourid;

    private String images;

    private String tourname;

    private Double grade;

    private String menpiao;

    private String address;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm:ss")
    private LocalTime openhours;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "HH:mm:ss")
    private LocalTime endhours;

    @TableLogic
    private Integer state;

}